<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="java.util.ArrayList, epam.bookShelf.bookStuff.Book" %> 

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Search result</title>
</head>
<body>
	<a href = "index.html"><h1>Book search</h1></a>
	<h2>Search result</h2>
	<%
    	ArrayList<Book> books = (ArrayList<Book>) request.getAttribute("bookList");
    	if (books.isEmpty()) {
	%>
	<H2>No books with this title</H2>
	<%
    	} else {
        	for(Book s : books) {
	%>
				<%=s.toString()%><br/>
	<%
    	    }
    	}
	%>
</body>
</html>